import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: "/home"
  },
  {
    path: '/home',
    name: 'Home',
    component: Home
  },
  {
    path: '/login',
    name: 'Login',

    component: () => import('../views/Login/Login.vue')
  },
  {
    path: '/register',
    name: 'Register',

    component: () => import('../views/Register/Register.vue')
  },
  {
    path: '/collection',
    name: 'Collection',

    component: () => import('../views/Collection/Collection.vue')
  },
  {
    path: '/mine',
    name: 'Mine',
    component: () => import('../views/Mine/Mine.vue')
  }
]



const router = new VueRouter({
  routes
})

export default router
